﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Project.Models
{
    /// <summary>
    /// 订单附件
    /// </summary>
    public class OrderFiles:BaseModel
    {
        [StringLength(300)]
        public string Path { get; set; }

        public Guid OrderDetailId { get; set; }

        [ForeignKey(nameof(OrderDetailId))]
        public virtual OrderDetail OrderDetail { get; set; }

        public OrderFiles()
        {
            OrderDetail = new OrderDetail();
        }
    }
}
